package com.fbs.wowo.manage.service;

import com.fbs.wowo.exception.GivenNullParamException;
import com.fbs.wowo.exception.InputVerifyFailedException;
import com.fbs.wowo.exception.NoSuchDataException;
import com.fbs.wowo.manage.entity.UserLogin;

public interface VerifyCodeService {
    /**
     * 发送验证码
     * @param tel 手机号
     * @return userLogin 对象
     * @throws GivenNullParamException
     */
    UserLogin sendVerifyCode(String tel) throws GivenNullParamException;

    /**
     *
     * @param tel
     * @param verifyCode
     * @return
     * @throws GivenNullParamException
     * @throws NoSuchDataException
     * @throws InputVerifyFailedException
     */
    UserLogin verifyCode(String tel, String verifyCode) throws GivenNullParamException, NoSuchDataException, InputVerifyFailedException;
}
